﻿using UnityEngine;
using System.Collections;
using SimpleServer;
using HotUI;
public class GameStart : MonoBehaviour {
	public bool useSimpleServer;
	public string nextSceneName;
	void OnUpdateFinish(){
		if (useSimpleServer) {
			var ser = new GameObject ("SimpleServer").AddComponent<SimpleServerMgr> ();
			GameObject.DontDestroyOnLoad (ser);
		}
		new GameObject("luamain").AddComponent<MyLuaMain>();
		GameTool.LoadScene (nextSceneName);
		GameObject.Destroy (gameObject);
	}
}
